package com.bean.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 学生信息表实体类
 */

public class StudentInfo implements Serializable {

    private Long id;
    private String  studentName;
    private Long classesId;
    private Integer gender;
    //出生地
    private String  bornplace;
    //籍贯
    private String  nativePlace;
    //民族
    private String  nation;
    //国籍
    private String  country;
    //政治面貌
    private String  political;
    //证件id
    private Integer  certificateId;
    //证件号码
    private String  cettificateNum;
    //证件有效期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date certificateTime;
    private Integer age;
    private String  address;
    //血型
    private String  bloodtype;
    private String  fatherName;
    private String  motherName;
    private String  phone;
    private String  emergentPhone;
    //宿舍id
    private Integer  dormitoryId;
    //班主任id
    private Integer  teacherId;
    private Integer  roleId;
    private String  password;
    private String  dreamSchool;
    //是否独生子女
    private Integer  isPre;
    //是否受过学前教育
    private Integer  isOnly;
    //是否留守儿童
    private Integer  isLeftOver;
    //是否随迁子女
    private Integer  isMigrant;
    //是否进城务工随迁
    private Integer  isMigrantWorker;
    //是否是孤儿
    private Integer  isOrphan;
    //是否单亲
    private Integer  isSingleParent;
    //是否烈士或优抚子女
    private Integer  isMartyr;
    //是否残疾人
    private Integer  isDisabled;
    //是否政府购买学位
    private Integer  isAssinDegree;
    //是否需要申请资助
    private Integer  isSupport;
    //是否享受一补
    private Integer  isSubsidy;

    @Override
    public String toString() {
        return "StudentInfo{" +
                "id=" + id +
                ", studentName='" + studentName + '\'' +
                ", classesId=" + classesId +
                ", gender=" + gender +
                ", bornplace='" + bornplace + '\'' +
                ", nativePlace='" + nativePlace + '\'' +
                ", nation='" + nation + '\'' +
                ", country='" + country + '\'' +
                ", political='" + political + '\'' +
                ", certificateId=" + certificateId +
                ", cettificateNum='" + cettificateNum + '\'' +
                ", certificateTime=" + certificateTime +
                ", age=" + age +
                ", address='" + address + '\'' +
                ", bloodtype='" + bloodtype + '\'' +
                ", fatherName='" + fatherName + '\'' +
                ", motherName='" + motherName + '\'' +
                ", phone='" + phone + '\'' +
                ", emergentPhone='" + emergentPhone + '\'' +
                ", dormitoryId=" + dormitoryId +
                ", teacherId=" + teacherId +
                ", roleId=" + roleId +
                ", password='" + password + '\'' +
                ", dreamSchool='" + dreamSchool + '\'' +
                ", isPre=" + isPre +
                ", isOnly=" + isOnly +
                ", isLeftOver=" + isLeftOver +
                ", isMigrant=" + isMigrant +
                ", isMigrantWorker=" + isMigrantWorker +
                ", isOrphan=" + isOrphan +
                ", isSingleParent=" + isSingleParent +
                ", isMartyr=" + isMartyr +
                ", isDisabled=" + isDisabled +
                ", isAssinDegree=" + isAssinDegree +
                ", isSupport=" + isSupport +
                ", isSubsidy=" + isSubsidy +
                '}';
    }

    public StudentInfo() {
    }

    public StudentInfo(Long id) {
        this.id = id;
    }

    public StudentInfo(Long id, String password) {
        this.id = id;
        this.password = password;
    }

    public StudentInfo(String phone, String emergentPhone) {
        this.phone = phone;
        this.emergentPhone = emergentPhone;
    }

    public StudentInfo(Integer dormitoryId) {
        this.dormitoryId = dormitoryId;
    }

    public StudentInfo(Integer dormitoryId, Integer teacherId) {
        this.dormitoryId = dormitoryId;
        this.teacherId = teacherId;
    }

    public StudentInfo(String studentName, Long classesId, Integer gender, String bornplace, String nativePlace, String nation, String country, String political, Integer certificateId, String cettificateNum, Date certificateTime, Integer age, String address, String bloodtype, String fatherName, String motherName, String phone, String emergentPhone, Integer dormitoryId, Integer teacherId, Integer roleId, String password, String dreamSchool, Integer isPre, Integer isOnly, Integer isLeftOver, Integer isMigrant, Integer isMigrantWorker, Integer isOrphan, Integer isSingleParent, Integer isMartyr, Integer isDisabled, Integer isAssinDegree, Integer isSupport, Integer isSubsidy) {
        this.studentName = studentName;
        this.classesId = classesId;
        this.gender = gender;
        this.bornplace = bornplace;
        this.nativePlace = nativePlace;
        this.nation = nation;
        this.country = country;
        this.political = political;
        this.certificateId = certificateId;
        this.cettificateNum = cettificateNum;
        this.certificateTime = certificateTime;
        this.age = age;
        this.address = address;
        this.bloodtype = bloodtype;
        this.fatherName = fatherName;
        this.motherName = motherName;
        this.phone = phone;
        this.emergentPhone = emergentPhone;
        this.dormitoryId = dormitoryId;
        this.teacherId = teacherId;
        this.roleId = roleId;
        this.password = password;
        this.dreamSchool = dreamSchool;
        this.isPre = isPre;
        this.isOnly = isOnly;
        this.isLeftOver = isLeftOver;
        this.isMigrant = isMigrant;
        this.isMigrantWorker = isMigrantWorker;
        this.isOrphan = isOrphan;
        this.isSingleParent = isSingleParent;
        this.isMartyr = isMartyr;
        this.isDisabled = isDisabled;
        this.isAssinDegree = isAssinDegree;
        this.isSupport = isSupport;
        this.isSubsidy = isSubsidy;
    }

    public StudentInfo(Long id, String studentName, Long classesId, Integer gender, String bornplace, String nativePlace, String nation, String country, String political, Integer certificateId, String cettificateNum, Date certificateTime, Integer age, String address, String bloodtype, String fatherName, String motherName, String phone, String emergentPhone, Integer dormitoryId, Integer teacherId, Integer roleId, String password, String dreamSchool, Integer isPre, Integer isOnly, Integer isLeftOver, Integer isMigrant, Integer isMigrantWorker, Integer isOrphan, Integer isSingleParent, Integer isMartyr, Integer isDisabled, Integer isAssinDegree, Integer isSupport, Integer isSubsidy) {
        this.id = id;
        this.studentName = studentName;
        this.classesId = classesId;
        this.gender = gender;
        this.bornplace = bornplace;
        this.nativePlace = nativePlace;
        this.nation = nation;
        this.country = country;
        this.political = political;
        this.certificateId = certificateId;
        this.cettificateNum = cettificateNum;
        this.certificateTime = certificateTime;
        this.age = age;
        this.address = address;
        this.bloodtype = bloodtype;
        this.fatherName = fatherName;
        this.motherName = motherName;
        this.phone = phone;
        this.emergentPhone = emergentPhone;
        this.dormitoryId = dormitoryId;
        this.teacherId = teacherId;
        this.roleId = roleId;
        this.password = password;
        this.dreamSchool = dreamSchool;
        this.isPre = isPre;
        this.isOnly = isOnly;
        this.isLeftOver = isLeftOver;
        this.isMigrant = isMigrant;
        this.isMigrantWorker = isMigrantWorker;
        this.isOrphan = isOrphan;
        this.isSingleParent = isSingleParent;
        this.isMartyr = isMartyr;
        this.isDisabled = isDisabled;
        this.isAssinDegree = isAssinDegree;
        this.isSupport = isSupport;
        this.isSubsidy = isSubsidy;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public Long getClassesId() {
        return classesId;
    }

    public void setClassesId(Long classesId) {
        this.classesId = classesId;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getBornplace() {
        return bornplace;
    }

    public void setBornplace(String bornplace) {
        this.bornplace = bornplace;
    }

    public String getNativePlace() {
        return nativePlace;
    }

    public void setNativePlace(String nativePlace) {
        this.nativePlace = nativePlace;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getPolitical() {
        return political;
    }

    public void setPolitical(String political) {
        this.political = political;
    }

    public Integer getCertificateId() {
        return certificateId;
    }

    public void setCertificateId(Integer certificateId) {
        this.certificateId = certificateId;
    }

    public String getCettificateNum() {
        return cettificateNum;
    }

    public void setCettificateNum(String cettificateNum) {
        this.cettificateNum = cettificateNum;
    }

    public Date getCertificateTime() {
        return certificateTime;
    }

    public void setCertificateTime(Date certificateTime) {
        this.certificateTime = certificateTime;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBloodtype() {
        return bloodtype;
    }

    public void setBloodtype(String bloodtype) {
        this.bloodtype = bloodtype;
    }

    public String getFatherName() {
        return fatherName;
    }

    public void setFatherName(String fatherName) {
        this.fatherName = fatherName;
    }

    public String getMotherName() {
        return motherName;
    }

    public void setMotherName(String motherName) {
        this.motherName = motherName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmergentPhone() {
        return emergentPhone;
    }

    public void setEmergentPhone(String emergentPhone) {
        this.emergentPhone = emergentPhone;
    }

    public Integer getDormitoryId() {
        return dormitoryId;
    }

    public void setDormitoryId(Integer dormitoryId) {
        this.dormitoryId = dormitoryId;
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getDreamSchool() {
        return dreamSchool;
    }

    public void setDreamSchool(String dreamSchool) {
        this.dreamSchool = dreamSchool;
    }

    public Integer getIsPre() {
        return isPre;
    }

    public void setIsPre(Integer isPre) {
        this.isPre = isPre;
    }

    public Integer getIsOnly() {
        return isOnly;
    }

    public void setIsOnly(Integer isOnly) {
        this.isOnly = isOnly;
    }

    public Integer getIsLeftOver() {
        return isLeftOver;
    }

    public void setIsLeftOver(Integer isLeftOver) {
        this.isLeftOver = isLeftOver;
    }

    public Integer getIsMigrant() {
        return isMigrant;
    }

    public void setIsMigrant(Integer isMigrant) {
        this.isMigrant = isMigrant;
    }

    public Integer getIsMigrantWorker() {
        return isMigrantWorker;
    }

    public void setIsMigrantWorker(Integer isMigrantWorker) {
        this.isMigrantWorker = isMigrantWorker;
    }

    public Integer getIsOrphan() {
        return isOrphan;
    }

    public void setIsOrphan(Integer isOrphan) {
        this.isOrphan = isOrphan;
    }

    public Integer getIsSingleParent() {
        return isSingleParent;
    }

    public void setIsSingleParent(Integer isSingleParent) {
        this.isSingleParent = isSingleParent;
    }

    public Integer getIsMartyr() {
        return isMartyr;
    }

    public void setIsMartyr(Integer isMartyr) {
        this.isMartyr = isMartyr;
    }

    public Integer getIsDisabled() {
        return isDisabled;
    }

    public void setIsDisabled(Integer isDisabled) {
        this.isDisabled = isDisabled;
    }

    public Integer getIsAssinDegree() {
        return isAssinDegree;
    }

    public void setIsAssinDegree(Integer isAssinDegree) {
        this.isAssinDegree = isAssinDegree;
    }

    public Integer getIsSupport() {
        return isSupport;
    }

    public void setIsSupport(Integer isSupport) {
        this.isSupport = isSupport;
    }

    public Integer getIsSubsidy() {
        return isSubsidy;
    }

    public void setIsSubsidy(Integer isSubsidy) {
        this.isSubsidy = isSubsidy;
    }
}
